<?php

namespace App\Models\MainDB\Family;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Family extends Model{

    use SoftDeletes;

    protected $table = 'ln_family';

    protected $fillable = [
        'user_id',
        'name',
        'icon',
        'code',
        'classify_id',
        'user_name',
        'user_id_number',
        'status',
        'family_notice',
    ];

    public function classify()
    {
        return $this->hasOne(FamilyClassify::class,'id', 'classify_id');
    }
}